package com.example.demo.event.guava;

import com.google.common.eventbus.Subscribe;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author lyc
 * @date 2019/6/10.
 */
@Component
@Slf4j
public class CashBackListener {

    @Subscribe
    public void listen(UserRegisterEvent event){
        //送现金
        log.info("送现金: "+event.getMessage());
    }

    @Subscribe
    public void listen(String message){
        log.info("receive message: "+message);
    }
}